package jgl.vajra.management.part.mine.model;

import java.util.Map;

import io.reactivex.Observable;
import jgl.vajra.management.part.mine.contract.MyCarListContract;
import jgl.vajra.management.widget.manager.RxJavaHttpManager;
import jgl.vajra.management.widget.manager.retrofit.RetrofitJsonManager;

public class MyCarListModel extends MyCarListContract.Model{
    @Override
    public Observable getMyCarList(Map<String, Object> map) {
        return RetrofitJsonManager.getInstance().getApiService().getMyCarList(map);
    }

    @Override
    public Observable<Object> deleteCarData(Map<String, Object> map) {
        return RetrofitJsonManager.getInstance().getApiService().deleteCarData(map)
                .compose(RxJavaHttpManager.applyTransformer());
    }
}
